﻿using EMall.Domain;

namespace EMall.ProductService.Categories
{
    public interface ICategoryRepository : IRepository<Category, int>
    {
        Task<Category?> GetByNameAsync(string name);
        Task<List<Category>> GetListByParentIdAsync(int parentId);
        Task<List<Category>> GetListByParentCodeAsync(string parentCode);
        Task<Category?> GetLastChildByParentIdAsync(int parentId);
    }
}
